<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
		/* 	var arr1 = new Array[1,2,5,10,40];
			var arr2 = new Array[35,24] */
		/* 	arr.length = 3;
			arr.length = 6;
			
			console.log(arr.length);
			
			/* for(i=0;i<arr.length;i++){
				console.log(arr[i]);
			} */ */
			
		/* 	var arr = arr1.concat(arr2);
			
			for(i in arr){
				console.log(arr[i]);
			}
			
			var s = arr1.join(",,");
			console.log(s)
			
			var arr3 = s.split(",,");
			console.log(arr3);
			
			var arr4 = arr3.reverse();
			console.log(arr4); */
			
			var arr = [2,6,8,7,10,12];
			
			var n =  
			arr.sort(function(x,y){
				return x-y;
			});
			
			console.log(arr);
			
			
			
		</script>
	</head>
	<body>
	</body>
</html>
